import request from '@/tools/request'

export const searchbyidforlimscustomerid = (params) => {
  return request({
    method: 'post',
    url: '/intercept/thirdparty/system/limscustomer/searchbyidforlimscustomerid',
    data: params,
    transformRequest: [
      function(data) {
        let ret = ''
        for (const it in data) {
          ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
        }
        return ret
      }
    ]
  })
}
export const limscustomer_searchlimscustomeridclass = (params) => {
  return request({
    method: 'post',
    url: '/intercept/thirdparty/system/limscustomer/searchlimscustomeridclass',
    data: params,
    transformRequest: [
      function(data) {
        let ret = ''
        for (const it in data) {
          ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
        }
        return ret
      }
    ]
  })
}
export const limscustomer_insert = (params) => {
  return request({
    method: 'post',
    url: '/intercept/thirdparty/system/limscustomer/insert',
    data: params,
    transformRequest: [
      function(data) {
        let ret = ''
        for (const it in data) {
          ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
        }
        return ret
      }
    ]
  })
}
export const limscustomer_edit = (params) => {
  return request({
    method: 'post',
    url: '/intercept/thirdparty/system/limscustomer/edit',
    data: params,
    transformRequest: [
      function(data) {
        let ret = ''
        for (const it in data) {
          ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
        }
        return ret
      }
    ]
  })
}
export const city_query = (params) => {
  return request({
    method: 'post',
    url: '/intercept/thirdparty/system/city/search',
    data: params,
    transformRequest: [
      function(data) {
        let ret = ''
        for (const it in data) {
          ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
        }
        return ret
      }
    ]
  })
}
export const industry_query = (params) => {
  return request({
    method: 'post',
    url: '/intercept/base/base_customer/base_industry/searchindustry',
    data: params,
    transformRequest: [
      function(data) {
        let ret = ''
        for (const it in data) {
          ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
        }
        return ret
      }
    ]
  })
}
export const invoiceclass_query = (params) => {
  return request({
    method: 'post',
    url: '/intercept/thirdparty/system/invoiceclass/search',
    data: params,
    transformRequest: [
      function(data) {
        let ret = ''
        for (const it in data) {
          ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
        }
        return ret
      }
    ]
  })
}
export const limscustomer_searchlimscustomeridbyuserid = (params) => {
  return request({
    method: 'post',
    url: '/intercept/thirdparty/system/limscustomer/searchlimscustomeridbyuserid',
    data: params,
    transformRequest: [
      function(data) {
        let ret = ''
        for (const it in data) {
          ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
        }
        return ret
      }
    ]
  })
}